package com.ruoyi.tongban.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tongban.mapper.FaceSignDetailMapper;
import com.ruoyi.tongban.domain.FaceSignDetail;
import com.ruoyi.tongban.service.IFaceSignDetailService;

/**
 * 考勤管理记录详情Service业务层处理
 * 
 * @author caiyanshan
 * @date 2021-04-08
 */
@Service
public class FaceSignDetailServiceImpl implements IFaceSignDetailService 
{
    @Autowired
    private FaceSignDetailMapper faceSignDetailMapper;

    /**
     * 查询考勤管理记录详情
     * 
     * @param detailId 考勤管理记录详情ID
     * @return 考勤管理记录详情
     */
    @Override
    public FaceSignDetail selectFaceSignDetailById(Long detailId)
    {
        return faceSignDetailMapper.selectFaceSignDetailById(detailId);
    }

    /**
     * 查询考勤管理记录详情列表
     * 
     * @param faceSignDetail 考勤管理记录详情
     * @return 考勤管理记录详情
     */
    @Override
    public List<FaceSignDetail> selectFaceSignDetailList(FaceSignDetail faceSignDetail)
    {
        return faceSignDetailMapper.selectFaceSignDetailList(faceSignDetail);
    }

    /**
     * 新增考勤管理记录详情
     * 
     * @param faceSignDetail 考勤管理记录详情
     * @return 结果
     */
    @Override
    public int insertFaceSignDetail(FaceSignDetail faceSignDetail)
    {
        faceSignDetail.setCreateTime(DateUtils.getNowDate());
        return faceSignDetailMapper.insertFaceSignDetail(faceSignDetail);
    }

    /**
     * 修改考勤管理记录详情
     * 
     * @param faceSignDetail 考勤管理记录详情
     * @return 结果
     */
    @Override
    public int updateFaceSignDetail(FaceSignDetail faceSignDetail)
    {
        return faceSignDetailMapper.updateFaceSignDetail(faceSignDetail);
    }

    /**
     * 批量删除考勤管理记录详情
     * 
     * @param detailIds 需要删除的考勤管理记录详情ID
     * @return 结果
     */
    @Override
    public int deleteFaceSignDetailByIds(Long[] detailIds)
    {
        return faceSignDetailMapper.deleteFaceSignDetailByIds(detailIds);
    }

    /**
     * 删除考勤管理记录详情信息
     * 
     * @param detailId 考勤管理记录详情ID
     * @return 结果
     */
    @Override
    public int deleteFaceSignDetailById(Long detailId)
    {
        return faceSignDetailMapper.deleteFaceSignDetailById(detailId);
    }
}
